package test;

import java.awt.AWTEvent;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;

import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

import com.zzh.fullscreen.AirPlane;
import com.zzh.fullscreen.Bullet;
import com.zzh.fullscreen.Flyer;
import com.zzh.fullscreen.Player;

public class MainRun {
	public static Draw md;
	public static void main(String[] args) {
		
		JFrame jf = new JFrame("my image test");
		jf.setBounds(200, 100, 512, 768);
		jf.setLayout(new BorderLayout());
		String se="";
		String[] selects=new String[]{
				"第一关",
				"第二关",
				"第三关",
				"第四关"
		};
//		se=(String) JOptionPane.showInputDialog(jf, "请选择关卡",
//					"关卡选择", JOptionPane.INFORMATION_MESSAGE, null,
//					selects, "第一关");
//		 System.out.println(se);
//		 if(se==null){
//			 System.exit(0);
//		 }
		md = new Draw(se);
		jf.add(md);

		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//
		jf.setLocationRelativeTo(null);//居中
		jf.setVisible(true);
//		md.requestFocus();
	}

}
